package main

import (
	"fmt"
	"log"

	"gitee.com/dark.H/DataDash/in"
)

func main() {
	for {
		_, v, _ := in.FlowFrom(">test :").Action()
		e, err := in.CompileGQL(v)
		if err != nil {
			log.Fatal(err)
		} else {
			log.Println("selector:", e.SELCTOR)
			log.Println("render:", e.GRAPHYRENDER)
			log.Println("options:", e.OPTIONS)
			log.Println("query:", e.QUERY)
			log.Println("render key:", e.RENDERKEY)
		}
		fmt.Println()
	}
}